package com.mengye.control.courseInfo;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mengye.bean.CourseInfoBean;
import com.mengye.control.LoginControl;
import com.mengye.model.CourseInfoModel;
import com.mengye.utils.EasyFactory;
import com.mengye.utils.MyUtils;

/**
 * Servlet implementation class CourseInfoAjaxSavingControl
 */
@WebServlet("/CourseInfoAjaxSavingControl")
public class CourseInfoAjaxSavingControl extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public CourseInfoAjaxSavingControl() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		CourseInfoBean courseInfoB = MyUtils.convertRequest2BeanWithFileUpload(request, CourseInfoBean.class);
		courseInfoB.setT_id(LoginControl.user_name);
		
	}

}
